//
// Created by liuzhen on 8/6/18.
//

#include <maya/MFnPlugin.h>
#include "firstNode.h"
#include "firstNodeCmd.h"

MStatus initializePlugin( MObject obj )

{
    MStatus status;
    MFnPlugin plugin(obj, "firstNode", "2017", "Any");

//    注册firstNode节点
    plugin.registerNode("firstNode", firstNode::id, firstNode::creator, firstNode::initialize);

//    注册firstNodeCmd命令
    plugin.registerCommand("firstNodeCmd", firstNodeCmd::creator);

    return status;
}



MStatus uninitializePlugin( MObject obj ){
    MStatus status;
    MFnPlugin plugin( obj );

//    注销firstNode节点
    plugin.deregisterNode( firstNode::id );

//    注销firstNodeCmd命令
    plugin.deregisterCommand( "firstNodeCmd" );

    return status;
}